package com.itheima.demo3;

public interface Eatable1 {
    String eat();
}

 class Test1 {
    public static void main(String[] args) {
        useEatable(new Eatable() {
            @Override
            public String eat() {
                return "肉夹馍";
            }
        });
        useEatable(() -> "凉皮");
    }

    public static void useEatable(Eatable eatable){
        String eat = eatable.eat();
        System.out.println("我们吃"+eat);
    }
}